<!DOCTYPE html>
<html>
	<head>
		 <meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<title></title>
		<link rel="stylesheet" href="../css/styles.css" />
		<!-- <link rel="stylesheet" href="https://d10ajoocuyu32n.cloudfront.net/mobile/1.3.1/jquery.mobile-1.3.1.min.css"> -->
		<link rel="stylesheet" href="../css/jquery.mobile-1.3.1.min.css">
		<link rel="stylesheet" href="file:///android_asset/css/in.css">
		<!--<link type="text/css" href="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.min.css" rel="stylesheet" /> -->
		<link type="text/css" href="../css/jqm-datebox.min.css" rel="stylesheet" /> 
		<!-- Extra Codiqa features -->
		<link rel="stylesheet" href="codiqa.ext.css">
		<!-- jQuery and jQuery Mobile -->
		<script src="https://d10ajoocuyu32n.cloudfront.net/jquery-1.9.1.min.js"></script>
		<script src="https://d10ajoocuyu32n.cloudfront.net/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
		<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
		<!-- Extra Codiqa features -->
		<script src="https://d10ajoocuyu32n.cloudfront.net/codiqa.ext.js"></script>
		<script src="file:///android_asset/js/login.js"></script>
	</head>
<body>
<!-- Home -->
	<div data-role="page" id="pageroute" data-theme="b">
			<div > 
				<center><img src="../images/forerunner_logo_final_header_480x200.png"  height="115" width="316" ></center>
			</div>
		<!-- Header -->  </br>
					<div  data-theme="c" style="margin:30px 0px 0px 0px"> 
						<center> <a href="#" align="center"> <img src="../images/rope_route.png" onclick="ropeOp()"></a></center>
					</div>
					<div  data-theme="c" style="margin:18px 0px 0px 0px"> 
						<center> <a href="#" align="center"> <img src="../images/boulder_problem.png" onclick="boulderOp()"></a></center>
					</div>
					<div  data-theme="c" style="margin:18px 0px 0px 0px"> 
						<center> <a href="#" align="center"> <img src="../images/contact.png" onclick="contactUs()"></a></center>
					</div>
			<div style="background-image: url(../images/topbar.png); bottom:0;text-align:center;margin:0px 0px 0px 0px;" id="sample" class="ui-footer-fixed " > 
				<div style="margin:8px 0px -7px 17px;">
					<img  style="margin:0px -1px 13px -17px;" class="folder" src="../images/folder.png"  height="40" width="40" onclick="folder()">
					<img  style="margin:0px -1px 13px 19px;" class="folder" src="../images/settings.png" height="40" width="40" onclick="settings()">
					<img  style="margin:0px -1px 13px 19px;" class="" src="../images/home.png" height="40" width="40" onclick="home()">
					<img  style="margin:0px -1px 13px 19px;" class="folder" src="../images/boulder.png" height="40" width="40" onclick="boulder()">
					<img  style="margin:0px -1px 13px 19px;" class="folder" src="../images/route.png" height="40" width="40" onclick="route()">
				</div>
			</div>
	</div>			
</body>
</html>
<script type="text/javascript" charset="utf-8" src="file:///android_asset/js/cordova.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
	var email=window.localStorage["username1"];
	var token1=encodeURIComponent(window.localStorage["token"]);
	document.addEventListener("deviceready", updateRopeRoute, false);
	function updateRopeRoute(){
			$.ajax({
					type: "GET",
					url: window.localStorage["url"]+'/getuserbyusername?username='+email+'&token='+token1,
					contentType: "application/json; charset=utf-8",
					dataType: "json",
					success: function(data){
					//navigator.notification.alert(data);	
					 if(data.status == "SUCCESS"){
							var obj=data.data;
							window.localStorage["user"]=obj.userid;
							window.localStorage["GroupId"]=obj.locationGroupId;
						}else if(data.errorCode=="100"){
							navigator.notification.alert("Please Sign In");
							window.location='index_login.html';
							return false;
						}
				}
			});
	}
	function contactUs(){
		<!-- window.location='http://forerunnerpro.com/?nr=0';-->
		navigator.app.loadUrl('http://forerunnerpro.com/?nr=0', { openExternal:true });
	}
	function folder(){
		<!-- window.location='http://forerunnerpro.com/?nr=0'; -->
		navigator.app.loadUrl('http://forerunnerpro.com/?nr=0', { openExternal:true });
	}
	function settings(){
	window.location='settings.html';
	}
	function home(){
	window.location='option.html';
	}
	function boulder(){
	window.location='boulder_option.html';
	}
	function route(){
	window.location='route_option.html';
	}
	function boulderOp(){
	window.location='boulder_option.html'; 
	}
	function ropeOp(){
	window.location='route_option.html'; 
	}
</script>